package com.dz.tool.Vo;

public class HibernateInfo {
    // 文件路径
    private String path;

    // 是否为主键
    private boolean isPrimary;

    // id为单独主键 composite-id为联合主键
    private String primaryType;

    // 类字段名称
    private String fieldName;

    // 表字段名称
    private String tableFiledName;

    // 主键生成方式 联合主键无此属性
    private String generator;

    public HibernateInfo(String path, boolean isPrimary, String primaryType, String fieldName, String tableFiledName, String generator) {
        this.path = path;
        this.isPrimary = isPrimary;
        this.primaryType = primaryType;
        this.fieldName = fieldName;
        this.tableFiledName = tableFiledName;
        this.generator = generator;
    }

    public HibernateInfo() {
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPrimaryType() {
        return primaryType;
    }

    public void setPrimaryType(String primaryType) {
        this.primaryType = primaryType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String filedName) {
        this.fieldName = filedName;
    }

    public String getTableFiledName() {
        return tableFiledName;
    }

    public void setTableFiledName(String tableFiledName) {
        this.tableFiledName = tableFiledName;
    }

    public String getGenerator() {
        return generator;
    }

    public void setGenerator(String generator) {
        this.generator = generator;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean primary) {
        isPrimary = primary;
    }
}
